package xgenerator.dao;

import java.util.List;
import java.util.Vector;

import xgenerator.converter.PropertyTypeConverter;
import xgenerator.model.FieldMetadata;

public interface MetadataDao extends Dao {
	/**
	 * 模拟开关
	 */
	public static final boolean MOCK = false;
	public Vector<String> getTables(String dataSourceName);
	public String getTableComments(String dataSourceName, String tableName);
	public Vector<String> getTableColumns(String dataSourceName, String tableName);
	public List<FieldMetadata> getTableColumnMetadata(String dataSourceName, String tableName);
	
	/**
	 * 策略模式，设置属性类型转换策略
	 * @param propertyTypeConverter
	 */
	public void setPropertyTypeConverter(PropertyTypeConverter propertyTypeConverter);
}
